package com.zelix;

import java.util.*;

public class d6
        implements Enumeration {

    private Enumeration a;

    public d6(Enumeration enumeration) {
        super();
        ArrayList arraylist;

        arraylist = new ArrayList();
        while (enumeration.hasMoreElements()) {
            arraylist.add(enumeration.nextElement());
        }
        a = Collections.enumeration(arraylist);
    }

    public final boolean hasMoreElements() {
        return a.hasMoreElements();
    }

    public final Object nextElement()
            throws NoSuchElementException {
        return a.nextElement();
    }
}